<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link rel="stylesheet" href="./css/reset.css" />
        <style>
            /* 
              设置图片的容器
            */
            .img-list {
                width: 590px;
                height: 470px;
                margin: 100px auto;
                /* 为ul开启相对定位,目的是使ul中的pointer可以相对于ul定位而不是相对于初试包含块(html)进行定位 */
                position: relative;
            }

            /* 设置li */
            .img-list li {
                position: absolute;
            }

            /* 通过修改元素的层级来显示指定的图片 */
            .img-list li:nth-child(2) {
                z-index: 1;
            }

            /* 设置div标签开启定位 */
            .pointer {
                /* 
                  这里的pointer是相对于html定位,明确这一点
                */
                position: absolute;
                z-index: 9999;
                bottom: 20px;
                left: 40px;
            }

            /* 设置导航点的样式 */
            .pointer a {
                display: block;
                width: 10px;
                height: 10px;
                background-color: rgba(255, 255, 255, 0.5);
                /* 将背景颜色值设置到内容区,边框和内边距不再有背景颜色 */
                background-clip: content-box;
                float: left;
                margin: 0px 4px;
                border-radius: 50%;
                border: 2px solid transparent;
            }

            /* 设置高亮显示 */
            .pointer a.active,
            .pointer a:hover {
                background-color: #fff;
                border: 2px solid rgba(255, 255, 255, 0.5);
            }
        </style>
        <title>Document</title>
    </head>
    <body>
        <ul class="img-list">
            <li>
                <a href="javascript:;">
                    <img src="./img/05/1.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/2.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/3.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/4.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/5.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/6.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/7.jpg" alt="" />
                </a>
            </li>
            <li>
                <a href="javascript:;">
                    <img src="./img/05/8.jpg" alt="" />
                </a>
            </li>
            <div class="pointer">
                <a class="active" href="javascript:;"></a>
                <a href="javascript:;"></a>
                <a href="javascript:;"></a>
                <a href="javascript:;"></a>
                <a href="javascript:;"></a>
                <a href="javascript:;"></a>
                <a href="javascript:;"></a>
                <a href="javascript:;"></a>
            </div>
        </ul>
    </body>
</html>
